home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / TextGraphic.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  876 b   |  51 lines

  1. #import "Graphic.h"
  2.  
  3. @interface TextGraphic : Graphic
  4. {
  5.     char *data;            /* the rich text */
  6.     int length;            /* the length of data */
  7.     id font;
  8. }
  9.  
  10. /* Factory methods overridden from superclass */
  11.  
  12. + (BOOL)isEditable;
  13. + cursor;
  14.  
  15. /* Initialization method */
  16.  
  17. - init;
  18.  
  19. /* Factory method used to show/hide the ruler */
  20.  
  21. + hideRuler:view;
  22.  
  23. /* Instance methods overridden from superclass */
  24.  
  25. - (BOOL)create:(NXEvent *)event in:view;
  26. - (BOOL)edit:(NXEvent *)event in:view;
  27. - draw;
  28. - (BOOL)isOpaque;
  29. - (BOOL)isValid;
  30. - (NXColor)textColor;
  31. - (NXColor)lineColor;
  32. - (NXColor)fillColor;
  33. - (BOOL)wantsTextColor;
  34. - (BOOL)wantsLineColor;
  35. - (BOOL)wantsFillColor;
  36.  
  37. - changeFont:sender;
  38. - font;
  39.  
  40. /* Text delegate methods */
  41.  
  42. - textDidEnd:textObject endChar:(unsigned short)endChar;
  43.  
  44. /* Archiving methods */
  45.  
  46. - awake;
  47. - read:(NXTypedStream *)stream;
  48. - write:(NXTypedStream *)stream;
  49.  
  50. @end
  51.